package com.zhangkunhao.notes.entity.Do;

import com.zhangkunhao.notes.annotation.TableField;
import com.zhangkunhao.notes.annotation.TableId;
import com.zhangkunhao.notes.annotation.TableName;


/**
 * 评论
 *
 * @author 20642
 */
@TableName(name = "tb_answer_comment")
public class AnswerComment {
    @TableId(value = "id")
    private Integer id;
    private String content;
    @TableField(value = "answer_comment_user_id")
    private Integer answerCommentUserId;
    @TableField(value = "answer_id")
    private Integer answerId;
    @TableField(value = "answer_user_id")
    private Integer answerUserId;
    /**
     * 评论是否被举报,1表示没有被举报,0表示被举报
     */
    @TableField(value = "report_status")
    private Integer reportStatus = 1;
    /**
     * 评论举报的理由
     */
    @TableField(value = "report_illegal_reason")
    private String reportIllegalReason = "无";
    /**
     * 发表评论的用户名
     */
    @TableField(value = "comment_user_name")
    private String commentUserName;

    public AnswerComment() {
    }

    public AnswerComment(Integer id, String content, Integer answerCommentUserId, Integer answerId, Integer answerUserId, Integer reportStatus, String reportIllegalReason, String commentUserName) {
        this.id = id;
        this.content = content;
        this.answerCommentUserId = answerCommentUserId;
        this.answerId = answerId;
        this.answerUserId = answerUserId;
        this.reportStatus = reportStatus;
        this.reportIllegalReason = reportIllegalReason;
        this.commentUserName = commentUserName;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     *
     * @param content：
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     *
     * @return answerCommentUserId
     */
    public Integer getAnswerCommentUserId() {
        return answerCommentUserId;
    }

    /**
     * 设置
     *
     * @param answerCommentUserId：
     */
    public void setAnswerCommentUserId(Integer answerCommentUserId) {
        this.answerCommentUserId = answerCommentUserId;
    }

    /**
     * 获取
     *
     * @return answerId
     */
    public Integer getAnswerId() {
        return answerId;
    }

    /**
     * 设置
     *
     * @param answerId：
     */
    public void setAnswerId(Integer answerId) {
        this.answerId = answerId;
    }

    /**
     * 获取
     *
     * @return answerUserId
     */
    public Integer getAnswerUserId() {
        return answerUserId;
    }

    /**
     * 设置
     *
     * @param answerUserId：
     */
    public void setAnswerUserId(Integer answerUserId) {
        this.answerUserId = answerUserId;
    }

    /**
     * 获取
     *
     * @return reportStatus
     */
    public Integer getReportStatus() {
        return reportStatus;
    }

    /**
     * 设置
     *
     * @param reportStatus:
     */
    public void setReportStatus(Integer reportStatus) {
        this.reportStatus = reportStatus;
    }

    /**
     * 获取
     *
     * @return reportIllegalReason
     */
    public String getReportIllegalReason() {
        return reportIllegalReason;
    }

    /**
     * 设置
     *
     * @param reportIllegalReason:
     */
    public void setReportIllegalReason(String reportIllegalReason) {
        this.reportIllegalReason = reportIllegalReason;
    }

    /**
     * 获取
     *
     * @return commentUserName
     */
    public String getCommentUserName() {
        return commentUserName;
    }

    /**
     * 设置
     *
     * @param commentUserName:
     */
    public void setCommentUserName(String commentUserName) {
        this.commentUserName = commentUserName;
    }

    @Override
    public String toString() {
        return "AnswerComment{id = " + id + ", content = " + content + ", answerCommentUserId = " + answerCommentUserId + ", answerId = " + answerId + ", answerUserId = " + answerUserId + ", reportStatus = " + reportStatus + ", reportIllegalReason = " + reportIllegalReason + ", commentUserName = " + commentUserName + "}";
    }
}
